/**
 * Copyright © 2021-2025 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.ruoyi.cost.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.compress.utils.Lists;

import java.util.List;

/**
 * 左树右表Entity
 * @author wzy
 * @version 2024-06-24
 */
@Data
@TableName("cost.post")
public class Post {

    private String id;

    private String name;

    private String parentId;

    @TableField(exist = false)
    private List<Post> children = Lists.newArrayList();


}
